<?php 
session_start();
if (isset($_SESSION['openid'])){
    $openid=$_SESSION['openid'];
	include_once("../c/config.php");
	$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
	if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqliTwo->error);}
	$query=$mysqli->query("select id from ci3 where openid='".$openid."' limit 0, 1");
	$msg=json_encode(array('s'=>'n'));
	if($query->num_rows>0){
	    $msg=json_encode(array('s'=>'k'));
	}
	echo $msg;
	$mysqli->close();
	exit;
}
echo json_encode(array('status'=>'n'));

?>